import { request } from '@/utils/request';

const Api = {
  info: '/setting/yuebao/',
  add: '/setting/yuebao',
};

// 详细
export function getSetting() {
  return request.get({
    url: Api.add,
  });
}

// 新增
export function addSetting(data: any) {
  return request.post({
    url: Api.add,
    data,
  });
}

// 修改
export function updateSetting(data: any) {
  return request.put({
    url: Api.add,
    data,
  });
}
